package com.shang.core;

import com.shang.core.base.LengthType;
import com.shang.core.base.VariableMeta;

/**
 * Created by shangwei2009@hotmail.com on 2021/9/8 15:23
 */
public class Hex2DecimalMeta extends VariableMeta {
    public Hex2DecimalMeta(String fieldName, Integer metaLength, LengthType lengthType) {
        super(fieldName, metaLength, lengthType);
    }

    @Override
    protected Integer valueLength(String metaStr) {
        return Integer.valueOf(metaStr, 16);
    }
}
